package tags;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;
import java.io.IOException;
import java.util.Date;

/**
 * Created by hadoop on 17-6-14.
 * 自定义标签类
 */
public class HelloWorldTag extends SimpleTagSupport{
    @Override
    public void doTag() throws JspException, IOException {
        getJspContext().getOut().write("HelloWorld "+new Date());
    }
}
